﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	<%@ page isELIgnored="false" %>
	<%@ taglib uri="/struts-tags" prefix="s"%>
	<%@ taglib uri="http://java.sun.com/jsp/jstl/core"  prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>1.1博客注册</title>
<link href="${pageContext.request.contextPath}/css/style_href.css" type="text/css"
	rel="stylesheet" />
<link href="${pageContext.request.contextPath}/css/style_hompage.css" type="text/css"
	rel="stylesheet" />
</head>
<body>

    <div id="left">
      <span>
      <s:fielderror/>
        欢迎${uv.blogName}
      </span>
       <br/> <br/>
      <span>
           个人资料<a href="changeUser.action"
                    
                       >[管理]</a>
      </span>
      <br/> <br/>
      <span>
           分类<a href="bcategoryAction.action">[管理]</a>
                
      </span>
      <br/> <br/>
       <span>
           发博文<a href="showarticleAction" >[发表]</a>
      </span>
      <br/> <br/>
       <span>
           好友<a href="
				<c:url value="showfriendAction">
					<c:param name="uv.buid" value="${uv.buid}"/>
				</c:url>"
			>[管理]</a>
      </span>
    </div>
    <div id="right">
     <c:forEach var="av" items="${articleList}" varStatus="status">
			<!-- 隔行变色效果 -->
			<!-- 判断status.count是否为奇数,如果为奇数设置该行背景颜色为蓝色 -->
				博文${status.count}：<br/>
				标题:${av.title}&nbsp;&nbsp;创建时间:${av.createtime}
				
				
				<td>&nbsp; 
			<%-- <a href="studentDisp?id=${student.sno}&name=${student.sname}">查看</a> --%>
			<!-- <a href="
				<c:url value="studentDisp">
					<c:param name="id" value="${student.sno}"/>
				</c:url>"
			>查看</a>
			&nbsp; -->
			<!-- 使用url标签构建由servlet路径与参数列表的拼接后的url路径(更便于维护) -->
			<!--  <a href="
				<c:url value="delBcategoryAction">
					<c:param name="bv.cid" value="${bv.cid}"/>
				</c:url>"
			>查看</a>-->
			<a href="
				<c:url value="delarticleAction">
					<c:param name="av.bid" value="${av.bid}"/>
				</c:url>"
			 	onclick="return confirm('确定删除该学生?')"
			>删除</a>
			<a href="
				<c:url value="tocarticleAction">
					<c:param name="av.bid" value="${av.bid}"/>
				</c:url>"
			>修改</a>
			<p>
			${av.article}
			</p>
			<hr/>
		</c:forEach>
    </div>
</body>
</html>
